﻿using AdventureWorks.Domain;
using FluentNHibernate.Mapping;

namespace AdventureWorks.DataAccess.Mappings
{
    public class ProductReviewMapping : ClassMap<ProductReview>
    {
        public ProductReviewMapping()
        {
            Schema("Production");
            Table("ProductReview");
            Id(x => x.Id, "ProductReviewId").GeneratedBy.Native();
            //References<Product>(x => x.Product, "ProductId");
            Map(x => x.Rating);
            Map(x => x.ReviewDate);
        }
    }
}
